﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="category.aspx.cs" Inherits="EnmineKaitlin.category" MasterPageFile="~/MasterPage/SubPage.Master" %>

<asp:Content ID="cntCategory" ContentPlaceHolderID="cphSubPage" runat="server">
<div class="box-sidebar">    
    <asp:Repeater ID="rptContentNews" runat="server">
        <ItemTemplate>
            <h2><asp:Label ID="lblTitle" Text='<%#Eval("Title") %>' runat="server"></asp:Label></h2>
            <div class="content">
                <%#Eval("Content") %>
                <div class="nav-tool">
                    <a href="javascript:return false;" id='<%#Eval("PostID") %>' class="link-email"><asp:Label ID="lblSendEmail" Text='<%#LoadString("email") %>' runat="server"></asp:Label></a>
                    <a href="javascript:return false;" id='<%#Eval("PostID") %>' class="link-save"><asp:Label ID="lblSave" Text='<%#LoadString("save") %>' runat="server"></asp:Label></a>
                    <a href="javascript:return false;" id='<%#Eval("PostID") %>' class="link-print"><asp:Label ID="lblPrint" Text='<%#LoadString("print") %>' runat="server"></asp:Label></a>
                </div>
            </div>                                
        </ItemTemplate>
    </asp:Repeater>            
    <asp:Repeater ID="rptListNews" runat="server">
        <HeaderTemplate>
            <h2><asp:Label ID="lblTitle" Text='<%#get_category_name(CatID) %>' runat="server"></asp:Label></h2>
            <div class="content"><ul class="list-news">
        </HeaderTemplate>        
        <ItemTemplate>            
            <li><a href='/category/<%#the_category_id(int.Parse(Eval("PostID").ToString())) %>/<%#ConvertTitleSeo(get_category_name(int.Parse(the_category_id(int.Parse(Eval("PostID").ToString()))))) %>/<%#Eval("PostID") %>/<%#ConvertTitleSeo(get_post_name(int.Parse(Eval("PostID").ToString()))) %>'><%#Eval("Title") %> <span class="datetime">(<%#DisplayDateTime(Eval("CreateDate").ToString())%>)</span></a></li>
        </ItemTemplate>
        <FooterTemplate></ul></div></FooterTemplate>
    </asp:Repeater>                
</div>
</asp:Content>